import Vue from 'vue';

import * as filters from '../api/filters'; //filter公共函数库
Object.keys(filters).forEach(k => Vue.filter(k, filters[k])) //注册过滤器

// Import F7 Vue Plugin
import Framework7Vue from 'framework7-vue'
Vue.use(Framework7Vue);


// Import app init components
import App from  "../components/app.vue"
// Import router
import routers from "../api/router"

// Init App
new Vue({
    el: '#app',
    template: '<app/>',
    //初始化F7
    framework7: {
        root: '#app',
        routes: routers, //init router
        animateNavBackIcon:true, //开启navbar动画
        tapHold:true, //长按保持
        pushState: true,
    },
    //注册app组件
    components: {
        app: App
    }
});

